﻿Public Class ServiceFactory

    Private repositoryFactory As Repository.RepositoryFactory

    Public Sub New()
        Me.repositoryFactory = New Repository.RepositoryFactory
    End Sub

    Public Function GetService(Of TService As IBaseService)() As TService
        Return System.Activator.CreateInstance(GetType(TService), Me.repositoryFactory)
    End Function

End Class
